<html>
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
      <h1>Pedidos</h1>

        <?php echo $this->Html->link('Volver', array('controller' => 'pedidos', 'action' => 'index')); ?>
      <table>
          <tr>
              <th>Id</th>
              <th>Medico</th>
              <th>Paciente</th>
              <th>Monto</th>
              <th>Aprobar</th>
              <th>Denegar</th>
          </tr>
          <?php foreach ($wfs as $wf): ?>
              <tr>
                  <td><?php echo $wf['id']; ?></td>
                  <td><?php echo $wf['medico']; ?></td>
                  <td><?php echo $wf['paciente']; ?></td>
                  <td><?php echo $wf['monto']; ?></td>
                  <td><?php echo $this->Html->link('Aprobar', array('action' => 'continuarWF',$wf['id'],1)); ?></td>
                  <td><?php echo $this->Html->link('Denegar', array('action' => 'continuarWF',$wf['id'],0 )); ?></td>
              </tr>
          <?php endforeach;?>
      </table>
  </body>
</html>